package com.db.patterns.template;

public class MainClass {
    public static void main(String[] args) {
        Client client = new CommonClient();
        String clientType1 = client.doGetClientType();
        Double discount1 = client.accountDiscount();
        System.out.println("客户种类：" + clientType1);
        System.out.println("客户折扣" + discount1);
        System.out.println("需要支付的金额:" + client.accountMoney(500d));

        Member member = new Member();
        String clientType2 = member.doGetClientType();
        Double discount2 = member.accountDiscount();
        System.out.println("客户种类：" + clientType2);
        System.out.println("客户折扣" + discount2);
        System.out.println("需要支付的金额:" + member.accountMoney(500d));

    }
}
